const actions = {
    setUser(context, user) {
        return new Promise((resolve) => {
            setTimeout(() => {
                context.commit('setUser', user)
                resolve()
            })
        })
    },
    loginout(context, payload) {
        context.commit('logout')
    }
}

export default actions